package semantic;

import astnode.DeclarationNode;

/**
 * Element type of IT( Identification Table )
 * @author Boshi Li
 *
 */
public class Identification {
	private int level = 0;			//Declaration level
	private DeclarationNode decPtr = null;	//Pointer to declaration node
	private int next = 0;		//index of last declaration of same name 
	private int lexI = 0;		//lexical index
	
	public Identification( int level, DeclarationNode decPtr, int next, int lexI) {
		this.level = level;
		this.next = next;
		this.decPtr = decPtr;
		this.lexI = lexI;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public DeclarationNode getDecPtr() {
		return decPtr;
	}
	public void setDecPtr(DeclarationNode decPtr) {
		this.decPtr = decPtr;
	}
	public int getNext() {
		return next;
	}
	public void setNext(int next) {
		this.next = next;
	}
	public int getLexI() {
		return lexI;
	}
	public void setLexI(int lexI) {
		this.lexI = lexI;
	}
}
